﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjetoGrupo2
{
    class Tiro : Objeto2D
    {
        bool flip;

        public Tiro(Texture2D texture,bool flip)
            : base(texture)
        {
            this.flip = flip;
        }

        public void Update()
        {
            if (flip)
            {
                posicao.X -= 13;

            }
            else {
            posicao.X += 13;
            }
            
            alpha -= 0.01f;
                
        }

    }
}
